package com.joe.bibackend.response;


import com.joe.bibackend.e.ResponseCode;
import lombok.Data;

@Data
public class NormalResponse<T> {

    private T data;

    private String code;

    private String message;

    public NormalResponse(T data, ResponseCode code) {
        this.data = data;
        this.code = code.getResponseCode();
        this.message=code.getMessage();
    }
}
